package vista;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.JTextField;
import javax.swing.WindowConstants;
import javax.swing.border.LineBorder;
import javax.swing.SwingUtilities;

/**
 * This code was edited or generated using CloudGarden's Jigloo SWT/Swing GUI
 * Builder, which is free for non-commercial use. If Jigloo is being used
 * commercially (ie, by a corporation, company or business for any purpose
 * whatever) then you should purchase a license for each developer using Jigloo.
 * Please visit www.cloudgarden.com for details. Use of Jigloo implies
 * acceptance of these licensing terms. A COMMERCIAL LICENSE HAS NOT BEEN
 * PURCHASED FOR THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED LEGALLY FOR
 * ANY CORPORATE OR COMMERCIAL PURPOSE.
 */
public class AltaMesa extends javax.swing.JFrame {
	private JPanel jPanel1;
	private JLabel jLabel3;
	private JComboBox sucursal;
	private JSeparator jSeparator1;
	private JTextField capacidad;
	private JLabel jLabel6;
	private JButton jButton1;
	private JComboBox sector;
	private JLabel jLabel5;
	private JButton cancelar;
	private JButton aceptar;
	private JComboBox salon;
	private JLabel jLabel4;
	private JTextField numeroMesa;
	private JLabel jLabel2;
	private JLabel jLabel1;
	private JPanel jPanel2;
	private JTextField sucursal1;
	private JTextField salon1;
	private JTextField sector1;

	/**
	 * Auto-generated main method to display this JFrame
	 */
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				AltaMesa inst = new AltaMesa();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}

	public AltaMesa() {
		super();
		initGUI();
	}

	public AltaMesa(String sucursal, String salon, String sector) {
		super();
		initGUI(sucursal, salon, sector);
	}

	private void initGUI(String sucursal2, String salon2, String sector2) {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setLocationRelativeTo(null);
			getContentPane().setLayout(null);
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1);
				jPanel1.setBounds(0, 69, 518, 292);
				jPanel1.setBackground(new java.awt.Color(206, 223, 183));
				jPanel1.setLayout(null);
				{
					jLabel2 = new JLabel();
					jPanel1.add(jLabel2);
					jLabel2.setText("Numero");
					jLabel2.setBounds(31, 31, 66, 16);
				}
				{
					numeroMesa = new JTextField();
					jPanel1.add(numeroMesa);
					numeroMesa.setBounds(111, 27, 80, 23);
				}
				{
					jLabel3 = new JLabel();
					jPanel1.add(jLabel3);
					jLabel3.setText("Sucursal");
					jLabel3.setBounds(31, 104, 61, 16);
				}
				{

					sucursal1 = new JTextField();
					jPanel1.add(sucursal1);
					sucursal1.setBounds(110, 101, 150, 23);
					sucursal1.setText(sucursal2);
					sucursal1.setEditable(false);
					sucursal1.setVisible(true);
				}
				{
					jLabel4 = new JLabel();
					jPanel1.add(jLabel4);
					jLabel4.setText("Sector");
					jLabel4.setBounds(40, 191, 45, 16);
				}
				{

					sector1 = new JTextField();
					jPanel1.add(sector1);
					sector1.setBounds(110, 187, 150, 23);
					sector1.setText(sector2);
					sector1.setEditable(false);
					sector1.setVisible(true);
				}
				{
					jLabel5 = new JLabel();
					jPanel1.add(jLabel5);
					jLabel5.setText("Salon");
					jLabel5.setBounds(43, 148, 52, 16);
				}
				{

					salon1 = new JTextField();
					jPanel1.add(salon1);
					salon1.setBounds(110, 144, 150, 23);
					salon1.setText(salon2);
					salon1.setEditable(false);
					salon1.setVisible(true);

				}
				{
					aceptar = new JButton();
					jPanel1.add(aceptar);
					aceptar.setText("Aceptar");
					aceptar.setBounds(284, 232, 87, 23);
					aceptar.setBackground(new java.awt.Color(170, 200, 130));
					aceptar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out
									.println("aceptar.actionPerformed, event="
											+ evt);
							// TODO add your code for aceptar.actionPerformed
						}
					});
				}
				{
					cancelar = new JButton();
					jPanel1.add(cancelar);
					cancelar.setText("Cancelar");
					cancelar.setBounds(384, 232, 88, 23);
					cancelar.setBackground(new java.awt.Color(170, 200, 130));
					cancelar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out
									.println("cancelar.actionPerformed, event="
											+ evt);
							// TODO add your code for cancelar.actionPerformed
						}
					});
				}
				{
					jButton1 = new JButton();
					jPanel1.add(jButton1);
					jButton1.setText("Ubicacion");
					jButton1.setBounds(331, 124, 118, 46);
					jButton1.setBackground(new java.awt.Color(170, 200, 130));
					jButton1.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							UbicacionMesas a = new UbicacionMesas();
							a.setVisible(true);
						}
					});
				}
				{
					jLabel6 = new JLabel();
					jPanel1.add(jLabel6);
					jLabel6.setText("Capacidad");
					jLabel6.setBounds(23, 67, 62, 16);
				}
				{
					capacidad = new JTextField();
					jPanel1.add(capacidad);
					capacidad.setBounds(110, 65, 81, 23);
				}
				{
					jSeparator1 = new JSeparator();
					jPanel1.add(jSeparator1);
					jSeparator1.setBounds(0, 222, 487, 10);
				}
			}
			{
				jPanel2 = new JPanel();
				getContentPane().add(jPanel2);
				jPanel2.setBounds(0, 0, 512, 70);
				jPanel2.setBackground(new java.awt.Color(172, 201, 133));
				jPanel2.setLayout(null);
				{
					jLabel1 = new JLabel();
					jPanel2.add(jLabel1);
					jLabel1.setText("Mesa");
					jLabel1.setBounds(21, 19, 134, 45);
					jLabel1.setFont(new java.awt.Font("Andalus", 0, 36));
				}
			}
			pack();
			this.setSize(499, 378);
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setLocationRelativeTo(null);
			getContentPane().setLayout(null);
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1);
				jPanel1.setBounds(0, 69, 518, 292);
				jPanel1.setBackground(new java.awt.Color(206, 223, 183));
				jPanel1.setLayout(null);
				{
					jLabel2 = new JLabel();
					jPanel1.add(jLabel2);
					jLabel2.setText("Numero");
					jLabel2.setBounds(31, 31, 66, 16);
				}
				{
					numeroMesa = new JTextField();
					jPanel1.add(numeroMesa);
					numeroMesa.setBounds(111, 27, 80, 23);
				}
				{
					jLabel3 = new JLabel();
					jPanel1.add(jLabel3);
					jLabel3.setText("Sucursal");
					jLabel3.setBounds(31, 104, 61, 16);
				}
				{
					ComboBoxModel sucursalModel = new DefaultComboBoxModel(
							new String[] { "Item One", "Item Two" });
					sucursal = new JComboBox();
					jPanel1.add(sucursal);
					sucursal.setModel(sucursalModel);
					sucursal.setBounds(110, 101, 150, 23);
					sucursal.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out
									.println("sucursal.actionPerformed, event="
											+ evt);
							// TODO add your code for sucursal.actionPerformed
						}
					});
				}
				{
					jLabel4 = new JLabel();
					jPanel1.add(jLabel4);
					jLabel4.setText("Sector");
					jLabel4.setBounds(40, 191, 45, 16);
				}
				{
					ComboBoxModel sectorModel = new DefaultComboBoxModel(
							new String[] { "Item One", "Item Two" });
					sector = new JComboBox();
					jPanel1.add(sector);
					sector.setModel(sectorModel);
					sector.setBounds(110, 187, 150, 23);
					sector.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out.println("sector.actionPerformed, event="
									+ evt);
							// TODO add your code for sector.actionPerformed
						}
					});
				}
				{
					jLabel5 = new JLabel();
					jPanel1.add(jLabel5);
					jLabel5.setText("Salon");
					jLabel5.setBounds(43, 148, 52, 16);
				}
				{
					ComboBoxModel salonModel = new DefaultComboBoxModel(
							new String[] { "Item One", "Item Two" });
					salon = new JComboBox();
					jPanel1.add(salon);
					salon.setModel(salonModel);
					salon.setBounds(110, 144, 150, 23);
					salon.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out.println("salon.actionPerformed, event="
									+ evt);
							// TODO add your code for salon.actionPerformed
						}
					});
				}
				{
					aceptar = new JButton();
					jPanel1.add(aceptar);
					aceptar.setText("Aceptar");
					aceptar.setBounds(284, 232, 87, 23);
					aceptar.setBackground(new java.awt.Color(170, 200, 130));
					aceptar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out
									.println("aceptar.actionPerformed, event="
											+ evt);
							// TODO add your code for aceptar.actionPerformed
						}
					});
				}
				{
					cancelar = new JButton();
					jPanel1.add(cancelar);
					cancelar.setText("Cancelar");
					cancelar.setBounds(384, 232, 88, 23);
					cancelar.setBackground(new java.awt.Color(170, 200, 130));
					cancelar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							System.out
									.println("cancelar.actionPerformed, event="
											+ evt);
							// TODO add your code for cancelar.actionPerformed
						}
					});
				}
				{
					jButton1 = new JButton();
					jPanel1.add(jButton1);
					jButton1.setText("Ubicacion");
					jButton1.setBounds(331, 124, 118, 46);
					jButton1.setBackground(new java.awt.Color(170, 200, 130));
					jButton1.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							UbicacionMesas a = new UbicacionMesas(numeroMesa
									.getText());
							a.setVisible(true);
						}
					});
				}
				{
					jLabel6 = new JLabel();
					jPanel1.add(jLabel6);
					jLabel6.setText("Capacidad");
					jLabel6.setBounds(23, 67, 62, 16);
				}
				{
					capacidad = new JTextField();
					jPanel1.add(capacidad);
					capacidad.setBounds(110, 65, 81, 23);
				}
				{
					jSeparator1 = new JSeparator();
					jPanel1.add(jSeparator1);
					jSeparator1.setBounds(0, 222, 487, 10);
				}
			}
			{
				jPanel2 = new JPanel();
				getContentPane().add(jPanel2);
				jPanel2.setBounds(0, 0, 512, 70);
				jPanel2.setBackground(new java.awt.Color(172, 201, 133));
				jPanel2.setLayout(null);
				{
					jLabel1 = new JLabel();
					jPanel2.add(jLabel1);
					jLabel1.setText("Mesa");
					jLabel1.setBounds(21, 19, 134, 45);
					jLabel1.setFont(new java.awt.Font("Andalus", 0, 36));
				}
			}
			pack();
			this.setSize(499, 378);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
